﻿
@{
    ViewBag.Title = "Ckeditor 集成演示";
}
@section Header{
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/bootstrap-theme.min.css" rel="stylesheet" />
}
<ul class="nav nav-tabs" role="tablist" style="margin-bottom:25px;">
    <li role="presentation"><a href="@Url.Action("Index")">SigFinder 演示：</a></li>
    <li role="presentation"><a href="@Url.Action("DemoTinyMCE")">TinyMCE 集成演示</a></li>
    <li role="presentation"  class="active"><a href="@Url.Action("DemoCkeditor")">Ckeditor 集成演示</a></li>
</ul>
<div class="demo">
     <textarea name="content" id="content"></textarea>
 </div>

@section footer{
<script src="~/Scripts/jquery-3.1.1.min.js"></script>
<script src="~/Scripts/bootstrap.min.js"></script>
<script src="~/plugins/ckeditor/ckeditor.js"></script>
    <script>
        var editor = CKEDITOR.replace("content", {
            filebrowserImageBrowseUrl: '@Url.Action("FinderForCkeditor", "File")',
            filebrowserWindowHeight: '660',
            filebrowserImageUploadUrl: '@Url.Action("UploadImage","File")',
            filebrowserUploadUrl: '@Url.Action("FinderForCkeditor", "File")'
        }
    );
    </script>
    }
